/*
 * Copyright (C) 2017-2021
 * All rights reserved, Designed By
 * Copyright authorization contact 18814114118
 */
package com.shop.cereshop.business.param.shop;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 店铺资质认证请求参数
 */
@Data
@ApiModel(value = "ShopQualificationParam", description = "店铺资质认证请求参数")
@Accessors(chain = true)
public class ShopQualificationParam {

    @ApiModelProperty(value = "店铺类型 1-普通企业店 2-个体工商户 3-品牌旗舰店", required = true)
    @NotNull(message = "店铺类型不能为空")
    private Integer shopType;

    @ApiModelProperty(value = "营业执照图片URL", required = true)
    @NotBlank(message = "营业执照图片不能为空")
    private String businessLicenseUrl;

    @ApiModelProperty(value = "行业经营许可证图片URL（选填）")
    private String industryLicenseUrl;

    @ApiModelProperty(value = "身份证正面照URL", required = true)
    @NotBlank(message = "身份证正面照不能为空")
    private String idCardFrontUrl;

    @ApiModelProperty(value = "身份证反面照URL", required = true)
    @NotBlank(message = "身份证反面照不能为空")
    private String idCardBackUrl;

    @ApiModelProperty(value = "品牌授权书图片URL（品牌旗舰店必填）")
    private String brandAuthorizationUrl;

    @ApiModelProperty(value = "商标注册证图片URL（品牌旗舰店必填）")
    private String trademarkCertificateUrl;

    @ApiModelProperty(value = "经营地址", required = true)
    @NotBlank(message = "经营地址不能为空")
    private String businessAddress;

    @ApiModelProperty(value = "入驻人姓名", required = true)
    @NotBlank(message = "入驻人姓名不能为空")
    private String applicantName;

    @ApiModelProperty(value = "身份证号", required = true)
    @NotBlank(message = "身份证号不能为空")
    private String idCardNumber;

    @ApiModelProperty(value = "手机号码", required = true)
    @NotBlank(message = "手机号码不能为空")
    private String phoneNumber;

    @ApiModelProperty(value = "公司名称（普通企业店和品牌旗舰店必填）")
    private String companyName;

    @ApiModelProperty(value = "统一社会信用代码（普通企业店和品牌旗舰店必填）")
    private String socialCreditCode;

    @ApiModelProperty(value = "品牌名称（品牌旗舰店必填）")
    private String brandName;

    @ApiModelProperty(value = "商户名称（个体工商户必填）")
    private String merchantName;

    @ApiModelProperty(value = "是否使用OCR自动识别", example = "true")
    private Boolean useOCR = true;
}
